package com.example.goodrubish.Garbage;

import com.example.goodrubish.Fragment.NewsFragment;

import org.json.JSONException;
import org.json.JSONObject;

public class News_list {
    private String title;
    private String description;
    private String url;
    private String pictureUrl;

    public News_list(JSONObject the_news_JSON) throws JSONException {
        title=the_news_JSON.getString("title");
        description=the_news_JSON.getString("description");
        url=the_news_JSON.getString("url");
        pictureUrl =the_news_JSON.getString("picUrl");
    }

    public String getTitle(){
        return title;
    }

    public String getDescription(){
        return description;
    }

    public String getpicUrl(){return pictureUrl;}

    public String getUrl(){return url;}
}
